import { storage } from ".";

export function isAuthorized(code: string): boolean {
	const claims = storage.getClaims();
	if (claims?.isSuper) return true;
	if (!claims?.features) return false;
	return claims.features.includes(code);
}
